package com.my.study.listener;

import com.my.study.bean.CustomEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author Carlos
 * @version 1.0.0
 * @date 2022/3/1 22:06
 */
public class CustomListener implements ApplicationListener<CustomEvent> {


    @Override
    public void onApplicationEvent(CustomEvent event) {
        Object source = event.getSource();
        System.out.println(" >>>>> " + source);
    }
}
